package com.snake.springboot.custom.api.response.aicost;


import io.swagger.annotations.ApiModelProperty;

/**
 * <p>支付校验返回值
 * 类{@code GenerateCheckRsp} </br>
 * 创建时间2025/3/21 10:34
 * @author yangxt
 * @see
 */
public class GenerateCheckRsp {
    @ApiModelProperty("校验码：0 正常 1 异常")
    private Integer checkCode;
    @ApiModelProperty("返回消息注解")
    private String checkMsg;

    public static GenerateCheckRsp ucc() {
        GenerateCheckRsp rsp = new GenerateCheckRsp();
        rsp.setCheckCode(0);
        return rsp;
    }

    public static GenerateCheckRsp fail(String msg) {
        GenerateCheckRsp rsp = new GenerateCheckRsp();
        rsp.setCheckCode(1);
        rsp.setCheckMsg(msg);
        return rsp;
    }

    public Integer getCheckCode() {
        return checkCode;
    }

    public void setCheckCode(Integer checkCode) {
        this.checkCode = checkCode;
    }

    public String getCheckMsg() {
        return checkMsg;
    }

    public void setCheckMsg(String checkMsg) {
        this.checkMsg = checkMsg;
    }
}
